import { createApp } from 'vue'
import { createPinia } from 'pinia'
import antd from 'ant-design-vue'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import 'font-awesome/css/font-awesome.css'
// main.ts
import 'element-plus/theme-chalk/src/progress.scss'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const app = createApp(App)

app.config.globalProperties.$ANTD_LOCALE = zhCN

app.use(createPinia().use(piniaPluginPersistedstate))
app.use(ElementPlus); // 注册 ElementPlus 插件
app.use(router)
app.use(antd)
app.mount('#app')
